﻿<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="AJAXLobby.aspx.vb" Inherits="projectBiome.AJAXLobby" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body style="height: 18px">
    <form id="form1" runat="server">
    <asp:Panel ID="Panel1" runat="server" Height="603px" Width="1110px">
        <br />
        <asp:DropDownList ID="ddlGameType" runat="server" AppendDataBoundItems="true" 
                    AutoPostBack="true" 
                    style="z-index: 1; left: 374px; top: 201px; position: absolute">
                </asp:DropDownList>
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <br />
        <asp:Timer runat="server" id="Timer1" interval="3000" ontick="Timer1_Tick" />
         <asp:Timer runat="server" id="Timer2" interval="5000" ontick="Timer2_Tick" />
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <Triggers>
                <asp:AsyncPostBackTrigger controlid="Timer1" eventname="Tick" />
            </Triggers>
            <ContentTemplate>
             
                <asp:Label ID="Name" runat="server" Text="Label"></asp:Label>
                <br />
                <br />
                <asp:Label ID="lblTurn" runat="server" Text="Label"></asp:Label>
                <br />
                <asp:Label ID="lblSelect" runat="server" 
                    style="z-index: 1; left: 171px; top: 203px; position: absolute" 
                    Text="Please Choose a Game to Join: "></asp:Label>
                <br />
                <asp:Label ID="lblM" runat="server" Text="Label"></asp:Label>
                <br />
                <asp:Label ID="lblUpdate" runat="server" 
                    style="z-index: 1; left: 276px; top: 282px; position: absolute"></asp:Label>
                
                <br />
                <br />
                <br />
                <br />
                <br />
                </div>
                <asp:GridView ID="gvMatches" runat="server" AutoGenerateColumns="False" 
                    style="z-index: 1; left: 234px; top: 323px; position: absolute; height: 133px; width: 340px" 
                    Visible="False" CellPadding="4" ForeColor="#333333" GridLines="None">
                    <AlternatingRowStyle BackColor="White" />
                    <Columns>
                        <asp:BoundField DataField="MatchID" HeaderText="MatchID" />
                        <asp:BoundField HeaderText="NumberOfPlayers" />
                        <asp:TemplateField HeaderText="Join Match">
                            <ItemTemplate>
                                <asp:RadioButton ID="rdbJoinGame" runat="server" />
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                    <EditRowStyle BackColor="#2461BF" />
                    <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                    <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                    <RowStyle BackColor="#EFF3FB" />
                    <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                    <SortedAscendingCellStyle BackColor="#F5F7FB" />
                    <SortedAscendingHeaderStyle BackColor="#6D95E1" />
                    <SortedDescendingCellStyle BackColor="#E9EBEF" />
                    <SortedDescendingHeaderStyle BackColor="#4870BE" />
                </asp:GridView>
                <br />
                <br />
                <br />
                <br />
                <br />
                <br />
                <br />
                <br />
                <br />
                <br />
                <br />
                <div align="center">
                    <asp:Label ID="lblNoGame" runat="server"></asp:Label>
                    <br />
                    <br />
                    <asp:Button ID="btnJoin" runat="server" Text="Join?" Visible="False" />
                </div>
                <br />
                <br />
                <br />
                <br />
            </ContentTemplate>
        </asp:UpdatePanel>
    </asp:Panel>
    </form>
</body>
</html>
